package com.hae.cloud.testorderservice.api.feign.inter;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * FeignClient name 即要调用的服务名
 */
@FeignClient(name = "app-hae-member") //为避免代码冗余，可以将getUser的接口独立出来，再继承之
public interface UserFeign {

    /**
     * Feign调用接口名称方式同springMVC
     * @return
     */
    @RequestMapping("getUser")
    String getUser();
}
